package ooday02;

public class Doctor extends Person{
    public String title;

    //构造方法
    public Doctor(){

    }
    public Doctor(String name,int age,String address,String title){
        super(name,age,address);
        this.title=title;
    }

    public void cut(){
        System.out.println("医生"+name+"正在手术");
    }
}
